Class symantec.itools.awt.MatrixEnumeration
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.MatrixEnumeration

Object
   |
   +----symantec.itools.awt.MatrixEnumeration

public final class MatrixEnumeration
extends Object
implements Enumeration
This class is used to enumerate Matrix elements. Enumeration is used to sequentially scan through all the elements in a Matrix one at a time.

Version:
1.0, Nov 26, 1996
Author:
Symantec
See Also:
Matrix, Enumeration

Variable Index

 o errors
Error strings.

Constructor Index

 o symantec.itools.awt.MatrixEnumeration(Matrix)
Constructs a matrix enumerator for the given Matrix.

Method Index

 o advanceTo(int)
Skips enumeration ahead to the start of the given row.
 o currCol()
Returns the column number of the current element.
 o currRow()
Returns the row number of the current element.
 o hasMoreElements()
Returns true if more elements are available to enumerate.
 o hasMoreRows()
Returns true if more rows are available to enumerate.
 o nextElement()
Returns the next element.
 o nextRow()
Skips enumeration ahead to the start of the next row.

Variables

 o errors
protected transient java.util.ResourceBundle errors
Error strings.

Constructors

 o MatrixEnumeration
public MatrixEnumeration(Matrix matrix)
Constructs a matrix enumerator for the given Matrix.

Methods

 o advanceTo
public java.lang.Object advanceTo(int r) throws IllegalArgumentException
Skips enumeration ahead to the start of the given row.

Parameters:
r - the row to skip ahead to. Must be greater than the current row
Returns:
the first element in the given row
Throws: IllegalArgumentException
if r is less than or equal to the current row
 o currCol
public int currCol()
Returns the column number of the current element.

 o currRow
public int currRow()
Returns the row number of the current element.

 o hasMoreElements
public boolean hasMoreElements()
Returns true if more elements are available to enumerate. This is a standard Java Enumeration interface method.

Returns:
true if more elements available, false if done enumerating
 o hasMoreRows
public boolean hasMoreRows()
Returns true if more rows are available to enumerate.

 o nextElement
public java.lang.Object nextElement()
Returns the next element. This is a standard Java Enumeration interface method.

 o nextRow
public java.lang.Object nextRow()
Skips enumeration ahead to the start of the next row.

Returns:
the first element in the next row.

All Packages  Class Hierarchy  This Package  Previous  Next  Index